package com.jn.erp.security.sysservice;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jn.erp.security.entity.SysUser;

import java.util.List;

/**
 * <pre>
 *
 * </pre>
 *
 * @author sunjiyong
 * @since 2024/8/28 15:44
 */
public interface SysUserService extends IService<SysUser> {


    List<SysUser> selectAllocatedList(SysUser user);

    List<SysUser> selectUnallocatedList(SysUser user);

    List<SysUser> selectUserList(SysUser user);

    SysUser checkUserInDept(SysUser user);

    //校验是否为其他机构下已有用户
    boolean checkUserNameDept(SysUser user);


    boolean checkUserNameUnique(SysUser user);

    boolean checkPhoneUnique(SysUser user);

    boolean checkEmailUnique(SysUser user);

    //修改用户头像
    boolean updateUserAvatar(Long userId, String avatar);


}
